const { DataTypes } = require("sequelize");
const sequelize = require("../config/sequelize");

const Sports = sequelize.define(
  "Sports",
  {
    name: {
      type: DataTypes.STRING,
      comment: "运动名称",
    },
    img: {
      type: DataTypes.STRING,
      comment: "运动图片",
    },
    heat: {
      type: DataTypes.INTEGER,
      comment: "运动热量",
    },
  },
  {
    // 这是其他模型参数
    sequelize: sequelize,
    tableName: "sports",
    timestamps: false, //关闭时间戳
  }
);

module.exports = Sports;
